<template>
  <view>
    <UniCard backColor='red'>
      <view class="card-in-out">
        <view class="left">
          <view class="txt">
            当前店铺余额(元)
          </view>
          <view class="money">
            222.00
          </view>
        </view>
        <view class="right iconfont icon-youjiantou" />
      </view>
    </UniCard>

    <UniCard>
      <view class="top">
        <view class="left">
          我的卡
        </view>
        <view class="right">
          <text class="txt">绑定新卡</text>
          <text class="iconfont icon-youjiantou" />
        </view>
      </view>
      <view class="bottom">
        <view class="left">
          <text class="iconfont icon-youjiantou" />
          <text>礼品卡</text>
        </view>
        <view class="right">
          <text class="momey">¥0.00</text>
          <text class="iconfont icon-youjiantou" />
        </view>
      </view>
    </UniCard>

    <UniCard>
      <view class="top">
        <view class="left">
          充值中心
        </view>
        <view class="right">
          <text>更多</text>
          <text class="iconfont icon-youjiantou" />
        </view>
      </view>
      <view class="more-card">
        <UniCard :border="true">
          <view class="money">
            ¥10
          </view>
          <view class="txt">
            充值金额
          </view>
        </UniCard>
        <UniCard :border="true">
          <view class="money">
            ¥100
          </view>
          <view class="txt">
            充值金额
          </view>
        </UniCard>
        <UniCard :border="true">
          <view class="money">
            ¥1000
          </view>
          <view class="txt">
            充值金额
          </view>
        </UniCard>
      </view>
    </UniCard>

    <UniCard>
      <view class="top">
        <view class="left">
          购卡中心
        </view>
        <view class="right">
          <text>更多</text>
          <text class="iconfont icon-youjiantou" />
        </view>
      </view>
    </UniCard>
  </view>
</template>

<script>
  import UniCard from '@/components/common/UniCard.vue';
  export default {
    data() {
      return {

      }
    },
    components: {
      UniCard
    },
    methods: {

    }
  }
</script>

<style lang="scss" scoped>
  /deep/.uni-card .uni-card__content[data-v-19622063] {
    padding: 0;
  }

  @mixin flex {
    display: flex;
    justify-content: space-between;
  }

  .card-in-out {
    color: #fff;
    @include flex;
    align-items: center;

    .left {
      @include flex;
      flex-direction: column;
      align-items: flex-start;

      .money {
        font-weight: 800;
        font-size: $uni-font-size-lg;
      }
    }

    .right {}
  }

  .top,
  .bottom {
    @include flex;
    align-items: center;
  }

  .top {
    padding-bottom: $pd20;

    .right {
      color: $txt-color;

      .txt {
        font-size: $uni-font-size-sm;
      }

      .iconfont {
        font-size: $uni-font-size-sm;
      }
    }
  }

  .bottom {
    .right {
      .momey {
        font-size: $uni-font-size-lg;
      }

      .iconfont {
        font-size: $uni-font-size-lg;
      }
    }
  }

  .more-card {
    @include flex;
    flex-wrap: wrap;

    .money {
      font-size: $uni-font-size-lg;
      font-weight: 800;
    }

    .txt {
      color: $txt-color;
      font-size: $uni-font-size-sm
    }
  }
</style>
